package ${packageName};

<#if imports??>
<#list imports as import>
import ${import};
</#list>
</#if>

import lombok.Data;

/**
 * ${className}
 * 自动生成的实体类
 */
@Data
public class ${className} {
    <#list fields as field>
    /**
     * ${field.name}
     */
    private ${field.type} ${field.name};
    </#list>

    public ${className}() {
    }

    public ${className}(<#list fields as field>${field.type} ${field.name}<#if field_has_next>, </#if></#list>) {
        <#list fields as field>
        this.${field.name} = ${field.name};
        </#list>
    }
}
